﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo03
{
    class Area
    {
        public double R { get; set; }
        public double longer { get; set; }
        public double winder { get; set; }


        public void Count(double R)
        {
            double sum = R * R * 3.14;
            Console.WriteLine("圆的面积为" + sum);
        }
        public void Count(double longer, double winder)
        {
            double sum = longer * winder;
            Console.WriteLine("长方形面积为" + sum);
        }
    }
}
